<?php __e( link_tag( base_url() . 'js/jcarousellite/style.css' ) ); ?>

<script src="<?php echo base_url(); ?>js/jcarousellite/jcarousellite_1.0.1c4.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$(".newsticker-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 6,
		auto:500,
		speed:1500
	});
});
</script>

  <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tbody>
      <tr>
        <td width="40%" align="left" valign="top"><div id="newsticker-demo">    
           <div class="title">Journals</div>    
            <div class="newsticker-jcarousellite">
            <ul>
            <?php 
            if($num_rows > 0){      
               foreach ($list as $key => $value) {
                 ?>
                 <li>
                  <div class="thumbnail">
                    <a href="<?php __e(site_url('journals/contents_list/'.$value['os_journals_id']));?>" title="<?php __display_data($value['os_journals_title']);?>">
                    <?php __e( _journals_img($value['os_journals_cover_img'],  filter_data($value['os_journals_title']),0,$value['os_journals_id'] ) );?>
                      </a>
                  </div>
                  <div class="info">
                    <h4>
                      <a href="<?php __e(site_url('journals/contents_list/'.$value['os_journals_id']));?>" title="<?php __display_data($value['os_journals_title'],'htmlentities');?>">
                        <?php __display_data($value['os_journals_title']);?>                    
                      </a>
                    </h4>

                    <span class="cat">ISSN: <?php __e($value['os_journals_issn']);?></span>
                  </div>
                  <div class="clear"></div>
                </li>

                 <?php
               }/*</foreach ($list as $key => $value)>*/
            }/*</if($num_rows > 0)>*/ 
            ?>

           </ul>
           </div>    
        </div></td>
        <td width="60%" align="left" valign="top">
          <form action="<?php __e($frm_action);?>" method="post" name="<?php __e($frm_name);?>" id="<?php __e($frm_name);?>" class="frmreg" enctype="multipart/form-data">
  
  <div class="dsh_hd_info" align="right">
    <span class="spn">Overall Stats: </span><span>(From <?php __e($dt_from);?> to <?php __e($dt_to);?>)</span>
    <a href="javascript:;" onclick="javascript:$('.hd_sec_1').toggle();">(show/hide)</a>
  </div>  
  <br/>
  <div class="hd_sec_1">
  <br/>
  <table width="100%" class="tables_sample1 mytables" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="73%">Most Read Article (Full Text)</th>
        <th align="left" width="25%">No. Of Downloads</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
      <?php foreach ($stats_most_read as $key => $val){ ?>
      <tr class="trbottomhr pane">
        <td align="left" valign="top">&nbsp;</td>
        <td align="left" valign="top"><a href="<?php __e(site_url('journals/contents_list/'.$val['jid']));?>" title="<?php __e($val['name']);?>"><?php __display_data($val['name']);?></a></td>
        <td align="left" valign="top"><?php __display_data($val['cnt']);?></td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
      <?php } ?>
      
    </thead>  
  </table>
  <br/>
  <table width="100%" class="tables_sample1 mytables" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="73%">Most Read Publication (Full Text)</th>
        <th align="left" width="25%">No. Of Downloads</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
    </thead>
    <?php foreach ($stats_most_read_pub as $key => $val){ ?>
    <tr class="trbottomhr pane">
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top"><?php __display_data($val['name']);?></td>
      <td align="left" valign="top"><?php __display_data($val['cnt']);?></td>
      <td align="left" valign="top">&nbsp;</td>
    </tr>
    <?php } ?>
  </table>
  <br/>  
  <table width="100%" class="tables_sample1 mytables" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="73%">Most Visited Publication</th>
        <th align="left" width="25%">No. Of Hits</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
    </thead>
    <?php foreach ($stats_most_vis_pub as $key => $val){ ?>
    <tr class="trbottomhr pane">
      <td align="left" valign="top">&nbsp;</td>
      <td align="left" valign="top"><?php __display_data($val['name']);?></td>
      <td align="left" valign="top"><?php __display_data($val['cnt']);?></td>
      <td align="left" valign="top">&nbsp;</td>
    </tr>
    <?php } ?>  
    
  </table>
  </div>
    
  <br/>  
  <div class="dsh_hd_info" align="right">
    <span class="spn">Latest Journals: </span><a href="javascript:;" onclick="javascript:$('.hd_sec_2').toggle();">(show/hide)</a>
  </div>
  <br/>
  <div class="hd_sec_2">
  <table width="100%" class="tables_sample1 mytables" border="0">
    <thead>
      <tr class="th">
        <th align="left" width="1%">&nbsp;</th>
        <th align="left" width="15%">ISSN No</th>
        <th align="left" width="50%">Title</th>
        <th align="left" width="10%">Volume</th>
        <th align="left" width="24%">Date</th>
        <th align="left" width="1%">&nbsp;</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($latest_j as $key => $val){ ?>
      <tr class="trbottomhr pane">
        <td align="left" valign="top">&nbsp;</td>
        <td align="left" valign="top"><?php __display_data($val['issn']);?></td>
        <td align="left" valign="top"><a href="<?php __e(site_url('journals/contents_list/'.$val['id']));?>" title="<?php __e($val['name']);?>"><?php __display_data($val['name']);?></a></td>
        <td align="left" valign="top"><?php __display_data($val['vol_no']);?></td>
        <td align="left" valign="top"><?php __display_data($val['range']);?></td>
        <td align="left" valign="top">&nbsp;</td>
      </tr>
      <?php } ?>
    </tbody>    
  </table>
  </div>
  <br/> 
</form>
        </td>
      </tr>
    </tbody>
  </table>  

  